package com.bruce.apkinstaller.install;

import android.content.pm.IPackageDeleteObserver;
import android.os.RemoteException;
import android.util.Log;


/**
 * Created by Administrator on 2018/1/17.
 */

public class ProductPmUninstallImpl extends APmUninstallImpl implements InPmUninstallImpl {
    private static final String TAG = ProductPmUninstallImpl.class.getSimpleName();

    @Override
    public void start() {

    }

    @Override
    public void uninstall() {

    }

    public class PmPackageDeleteObserver extends IPackageDeleteObserver.Stub {
        @Override
        public void packageDeleted(String s, int i) throws RemoteException {
            if (i == 1) {
                Log.e(TAG, "卸载成功:" + s);
            } else {
                Log.e(TAG, "卸载失败...返回码:" + i);
            }
        }
    }
}
